package com.kmxd.ams.core.common.bo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * 选择框模型
 *
 * @author nickbi
 */
@Schema(description = "选择框模型")
@Data
public class OptionsModel<T> implements Serializable {
  @Schema(description = "标签")
  private String label;

  @Schema(description = "值")
  @JsonSerialize(using = ToStringSerializer.class)
  private T value;

  @Schema(description = "数据类型")
  private Integer type;
}
